package edu.neumont.pro180._2009_q2.batch;

import java.util.Scanner;

public class BatchFileDriver
{
	public static void main(String[] args)
	{
		BatchChessGame game = new BatchChessGame();
		if (args.length == 1)
		{
			game.setBatchFile(args[0]);
		}

		while (!game.validateSettings())
			game.setBatchFile(getBatchFileFromUser());

		game.playGame();
	}

	private static String getBatchFileFromUser()
	{
		Scanner scanner = new Scanner(System.in);
		System.out.println("Enter the path to a valid chess batch file:");
		return scanner.nextLine();
	}
}
